<?php if( count( $this->pagesInRange ) > 1 ) : ?>

<div class="pagination">
   
    <a href="<?= $this->url(array('page' => 1 )); ?>" class="button"><span><img src="/imgs/arrow-stop-180-small.gif" height="9" width="12" alt="First" /> First</span></a>
     - <?= $this->lastItemNumber; ?>
    of <?= $this->totalItemCount; ?>

    <?php if (isset($this->previous)): ?>
    <a href="<?=$this->url(array('page' => $this->previous )); ?>" class="button"><span><img src="/imgs/arrow-180-small.gif" height="9" width="12" alt="Previous" /> Prev</span></a>
    <?php endif;?>


    <div class="numbers">
        <span>Page:</span>
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if ($page == $this->current) :?>
            <span class="current"><?=$page?></span>
            <?php else:?>
            <a href="<?=$this->url(array('page' => $page )); ?>"><?=$page?></a>
            <?php endif;?>

            <span>|</span>
        <?php endforeach; ?>
    </div>
    
    <?php if (isset($this->next)): ?>
    <a href="<?= $this->url(array('page' => $this->next)); ?>" class="button"><span>Next <img src="/imgs/arrow-000-small.gif" height="9" width="12" alt="Next" /></span></a>
    <?php endif;?>

    <?php if (isset($this->last)): ?>
    <a href="<?= $this->url(array('page' => $this->last)); ?>" class="button last"><span>Last <img src="/imgs/arrow-stop-000-small.gif" height="9" width="12" alt="Last" /></span></a>
    <?php endif;?>
    <div style="clear: both;"></div>
</div>
<?php endif;?>